package com.yanlight.app.service.impl;

import com.yanlight.app.dal.dao.WxMsgReceiverDAO;
import com.yanlight.app.service.WxMsgReceiverService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class WxMsgReceiverServiceImpl implements WxMsgReceiverService {

    @Autowired
    WxMsgReceiverDAO wxMsgReceiverDAO;

    @Override
    public boolean checkPermission(String openID) {
        int exist = wxMsgReceiverDAO.isExist(openID);
        if (exist == 0) {
            return false;
        } else {
            return true;
        }
    }
}
